package com.wss.module.main.ui.page.selector;

import com.wss.module.main.ui.page.selector.bean.DateItem;
import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;
import ohos.agp.window.dialog.PopupDialog;
import ohos.app.Context;
import ohos.event.commonevent.MatchingSkills;

import java.util.ArrayList;
import java.util.List;

public class SelectorDatePopupWindow extends PopupDialog {

    private static final int MAX_HOUR = 12;
    private static final int MAX_MINUTE = 60;
    private static final String[] WEEKS = {"周日", "周一", "周二", "周三", "周四", "周五", "周六"};
    private static final String MORNING = "上午";
    private static final String AFTERNOON = "下午";
    /**
     * 延时的分钟数  默认30分钟
     */
    private static final int DELAYED_MINUTE = 30;
    /**
     * 最大可选天数
     */
    private static final int MAX_DAY_COUNT = 14;

    private Context context;
    private Component parent;
//    private WheelView wvDay, wvHour, wvMinute;

    private List<DateItem> dateList = new ArrayList<>();
    private List<String> dayList = new ArrayList<>();
    private List<String> hourList = new ArrayList<>();
    private List<String> minuteList = new ArrayList<>();
    private int datePosition, dayPosition, hourPosition, minutePosition;

    public SelectorDatePopupWindow(Context context, Component contentComponent) {
        super(context, contentComponent);
    }

    public SelectorDatePopupWindow(Context context, Component contentComponent, int width, int height) {
        super(context, contentComponent, width, height);
    }

    public void show() {
        initView();
    }

    /**
     * 初始化View
     */
    private void initView() {
        Intent intent = new Intent();
        intent.countEntities();
    }
}
